using UnityEngine;
using System.Collections;

public class Explosion : MonoBehaviour
{
    public float timeToLive = 1;
    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void FixedUpdate()
    {
        timeToLive -= Time.deltaTime;

        if (!audio.isPlaying && timeToLive <= 0)
        {
            Network.Destroy(gameObject);
        }
    }
}
